package com.gemantic.task.dto;


import com.alibaba.fastjson.JSON;

import lombok.Data;

/**
 * @author xiedi
 * @date 2022/09/16
 **/
@Data
public class DbTaskJobParams {

    private int withinHours;

    private int delayMinute;

    private Integer priority;

    private int limit;

    private Boolean withPending;

    public static void main(String[] args) {
        DbTaskJobParams dbTaskJobParams = new DbTaskJobParams();
        dbTaskJobParams.setPriority(1);
        dbTaskJobParams.setLimit(5);
        dbTaskJobParams.setWithinHours(24);
        dbTaskJobParams.setDelayMinute(0);
        dbTaskJobParams.setWithPending(false);
        System.out.println(JSON.toJSONString(dbTaskJobParams));
    }

}
